<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework 
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
	-->
	
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/custom.css" />
		
	<?php  $baseUrl = Yii::app()->baseUrl; $cs = Yii::app()->getClientScript(); 
		$cs->registerScriptFile($baseUrl.'/js/upload.js');
	?>
	<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
	
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
	
	<!--  share this script -->
	<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
	<script type="text/javascript">stLight.options({publisher: "419ca959-c70a-4d8e-a7a6-4208667e0d32"});</script>

	<script>
	  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
	  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
	  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
	  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
	
	  ga('create', 'UA-45774776-1', 'ilovemaomao.com');
	  	  ga('send', 'pageview');
	  	
	</script>	
				
	
</head>

<body>

<header class="navbar navbar-fixed-top">
	<div class="navbar-inner">
		<div class="container">
			<a id="logo" href="<?php echo Yii::app()->request->baseUrl; ?>/post/index">Little Big Fish</a>
			<nav>
				<ul class="nav pull-right">
					<li>
					<a href="<?php echo Yii::app()->request->baseUrl; ?>/post/index">Home</a>
					</li>
					<li>
					<a href="<?php echo Yii::app()->request->baseUrl; ?>/service">Online Services</a>
					</li>
					<li>
						<?php
							if (!Yii::app()->user->isGuest){
								echo CHtml::link('Photo',Yii::app()->request->baseUrl.'/post/photo');
							}	
						?>
					</li>
					<li>
                        <?php
                            if (!Yii::app()->user->isGuest){
                                echo CHtml::link('Video',Yii::app()->request->baseUrl.'/site/page?view=video');
                            }
                        ?>
					</li>
					<li>
	   					<?php
                            if (!Yii::app()->user->isGuest){
                                echo CHtml::link('About',Yii::app()->request->baseUrl.'/site/page?view=about');
                            }
                        ?>
					</li>
					<li>
					<a href="<?php echo Yii::app()->request->baseUrl; ?>/site/contact">Contact</a>
					</li>
					<li>
					<a href="<?php if (Yii::app()->user->isGuest)
									{ 
										echo Yii::app()->request->baseUrl , '/site/login'; 
									}else{
										echo Yii::app()->request->baseUrl , '/site/logout';
									}
								?>"><?php if (Yii::app()->user->isGuest)
									{ 
										echo 'Log in'; 
									}else{
										echo 'Logout ('.Yii::app()->user->name.')';
									}
								?>
								</a>
					</li>
				</ul>
			</nav>
		</div>
	</div>
</header>


<div class="container" id="page">

	<?php $this->widget('zii.widgets.CBreadcrumbs', array(
		'links'=>$this->breadcrumbs,
	)); ?><!-- breadcrumbs -->

	<?php echo $content; ?>	

</div><!-- page -->

<!-- footer -->
<footer class='footer'>
		<div class='container'>
			<div class='row'>
				<div class='span6 offset4'>
					Copyright &copy; <?php echo date('Y'); ?> by jaycee. All Rights Reserved.<br/>
				</div>
			</div>
		</div>
</footer>
</body>
</html>
